package javaweb_work01.classesContrl.Service;

import javaweb_work01.classesContrl.Dao.DelClassesDao;
import javaweb_work01.classesContrl.Factory.ClassesFactory;

public class DelClassesService {
    //合成复用原则
    private DelClassesDao delClassesDao;

    public DelClassesService(){
        this.delClassesDao = ClassesFactory.getDelClassesDao();
    }

    /**
     * 自定成员方法实现删除班级信息功能
     * @param cid
     */
    public void delClassesService(int cid){
        delClassesDao.delClasses(cid);
    }
}
